package com.rockcent.message.bean;

import java.util.Map;

/**
 * Created by zhangjh on 2017/7/18.
 */
public class WxAppTemplate extends  WxTemplate{

    /**
     * 模板ID
     */
    private String template_id;

    /**
     * 目标客户
     */
    private String touser;

    /**
     * 用户点击模板信息的跳转页面
     */
    private String page;

    /**
     * 表单提交场景下，为 submit 事件带上的 formId；支付场景下，为本次支付的 prepay_id
     */
    private String form_id;

    /**
     * 字体颜色
     */
    private String color;

    /**
     * 模板需要放大的关键词，不填则默认无放大
     */
    private String emphasis_keyword;

    /**
     * 模板里的数据
     */
    private Map<String, TemplateData> data;

    public String getTemplate_id() {
        return template_id;
    }

    public void setTemplate_id(String template_id) {
        this.template_id = template_id;
    }

    public String getTouser() {
        return touser;
    }

    public void setTouser(String touser) {
        this.touser = touser;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public String getForm_id() {
        return form_id;
    }

    public void setForm_id(String form_id) {
        this.form_id = form_id;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getEmphasis_keyword() {
        return emphasis_keyword;
    }

    public void setEmphasis_keyword(String emphasis_keyword) {
        this.emphasis_keyword = emphasis_keyword;
    }

    public Map<String, TemplateData> getData() {
        return data;
    }

    public void setData(Map<String, TemplateData> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "WxAppTemplate{" +
                "template_id='" + template_id + '\'' +
                ", touser='" + touser + '\'' +
                ", page='" + page + '\'' +
                ", form_id='" + form_id + '\'' +
                ", color='" + color + '\'' +
                ", emphasis_keyword='" + emphasis_keyword + '\'' +
                ", data=" + data +
                '}';
    }
}
